{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "import json\n",
    "import cv2 as cv\n",
    "import matplotlib.pyplot as plt\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "from circum import xy_values\n",
    "import random"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [],
   "source": [
    "os.chdir(\"/home/kiprono/Documents/STELLENBOSCH UNIVERISTY/Masters by Research\\\n",
    "/Mask RCNN/Annotation projects/RRR/test_images\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open(\"via_project_rrr.json\",\"r\") as file:\n",
    "    data = file.read()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [],
   "source": [
    "data = json.loads(data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>filename</th>\n",
       "      <th>file_size</th>\n",
       "      <th>file_attributes</th>\n",
       "      <th>region_count</th>\n",
       "      <th>region_id</th>\n",
       "      <th>region_shape_attributes</th>\n",
       "      <th>region_attributes</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [filename, file_size, file_attributes, region_count, region_id, region_shape_attributes, region_attributes]\n",
       "Index: []"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "headers = ['filename', 'file_size', 'file_attributes', 'region_count', 'region_id',\n",
    "       'region_shape_attributes', 'region_attributes']\n",
    "meta_rrr = pd.DataFrame(columns=headers)\n",
    "meta_rrr"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## ONE "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "rr-0001-0002-1-128-0128.jpg\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>filename</th>\n",
       "      <th>file_size</th>\n",
       "      <th>file_attributes</th>\n",
       "      <th>region_count</th>\n",
       "      <th>region_id</th>\n",
       "      <th>region_shape_attributes</th>\n",
       "      <th>region_attributes</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>rr-0001-0002-1-128-0128.jpg</td>\n",
       "      <td>444078</td>\n",
       "      <td>{}</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [464, 463,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>rr-0001-0002-1-128-0128.jpg</td>\n",
       "      <td>444078</td>\n",
       "      <td>{}</td>\n",
       "      <td>9</td>\n",
       "      <td>1</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [424, 423,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>rr-0001-0002-1-128-0128.jpg</td>\n",
       "      <td>444078</td>\n",
       "      <td>{}</td>\n",
       "      <td>9</td>\n",
       "      <td>2</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [489, 488,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>rr-0001-0002-1-128-0128.jpg</td>\n",
       "      <td>444078</td>\n",
       "      <td>{}</td>\n",
       "      <td>9</td>\n",
       "      <td>3</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [604, 603,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>rr-0001-0002-1-128-0128.jpg</td>\n",
       "      <td>444078</td>\n",
       "      <td>{}</td>\n",
       "      <td>9</td>\n",
       "      <td>4</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [551, 550,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>rr-0001-0002-1-128-0128.jpg</td>\n",
       "      <td>444078</td>\n",
       "      <td>{}</td>\n",
       "      <td>9</td>\n",
       "      <td>5</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [474, 473,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>rr-0001-0002-1-128-0128.jpg</td>\n",
       "      <td>444078</td>\n",
       "      <td>{}</td>\n",
       "      <td>9</td>\n",
       "      <td>6</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [837, 836,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>rr-0001-0002-1-128-0128.jpg</td>\n",
       "      <td>444078</td>\n",
       "      <td>{}</td>\n",
       "      <td>9</td>\n",
       "      <td>7</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [699, 699,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>rr-0001-0002-1-128-0128.jpg</td>\n",
       "      <td>444078</td>\n",
       "      <td>{}</td>\n",
       "      <td>9</td>\n",
       "      <td>8</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [542, 541,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                      filename file_size file_attributes region_count  \\\n",
       "0  rr-0001-0002-1-128-0128.jpg    444078              {}            9   \n",
       "1  rr-0001-0002-1-128-0128.jpg    444078              {}            9   \n",
       "2  rr-0001-0002-1-128-0128.jpg    444078              {}            9   \n",
       "3  rr-0001-0002-1-128-0128.jpg    444078              {}            9   \n",
       "4  rr-0001-0002-1-128-0128.jpg    444078              {}            9   \n",
       "5  rr-0001-0002-1-128-0128.jpg    444078              {}            9   \n",
       "6  rr-0001-0002-1-128-0128.jpg    444078              {}            9   \n",
       "7  rr-0001-0002-1-128-0128.jpg    444078              {}            9   \n",
       "8  rr-0001-0002-1-128-0128.jpg    444078              {}            9   \n",
       "\n",
       "  region_id                            region_shape_attributes  \\\n",
       "0         0  {'name': 'polygon', 'all_points_x': [464, 463,...   \n",
       "1         1  {'name': 'polygon', 'all_points_x': [424, 423,...   \n",
       "2         2  {'name': 'polygon', 'all_points_x': [489, 488,...   \n",
       "3         3  {'name': 'polygon', 'all_points_x': [604, 603,...   \n",
       "4         4  {'name': 'polygon', 'all_points_x': [551, 550,...   \n",
       "5         5  {'name': 'polygon', 'all_points_x': [474, 473,...   \n",
       "6         6  {'name': 'polygon', 'all_points_x': [837, 836,...   \n",
       "7         7  {'name': 'polygon', 'all_points_x': [699, 699,...   \n",
       "8         8  {'name': 'polygon', 'all_points_x': [542, 541,...   \n",
       "\n",
       "  region_attributes  \n",
       "0                {}  \n",
       "1                {}  \n",
       "2                {}  \n",
       "3                {}  \n",
       "4                {}  \n",
       "5                {}  \n",
       "6                {}  \n",
       "7                {}  \n",
       "8                {}  "
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "i = 6\n",
    "one = list(data.values())[i]\n",
    "a = one[\"filename\"] #filename\n",
    "print(a)\n",
    "b = one[\"size\"] #file_size\n",
    "c = \"{}\" #file_attributes\n",
    "d = len(one[\"regions\"])#region_count\n",
    "g = \"{}\" #region_attributes\n",
    "img = cv.imread(a)\n",
    "one_df = pd.DataFrame(columns=headers)\n",
    "for j in range(len(one[\"regions\"])):\n",
    "    xc = one[\"regions\"][j][\"shape_attributes\"][\"cx\"]#xc\n",
    "    yc = one[\"regions\"][j][\"shape_attributes\"][\"cy\"]#yc\n",
    "    r = one[\"regions\"][j][\"shape_attributes\"][\"r\"]#radius\n",
    "    t = {'name':'polygon','all_points_x':None,'all_points_y':None}\n",
    "    x,y = xy_values(xc,yc,r,img.shape[1],img.shape[0])\n",
    "    t['all_points_x']  = x\n",
    "    t['all_points_y'] = y\n",
    "    e = j #region_id\n",
    "    f = t #region_shape_attributes\n",
    "    row = [a,b,c,d,e,f,g]\n",
    "    one_df.loc[j] = row\n",
    "meta_rrr = pd.concat([meta_rrr,one_df],ignore_index=True)\n",
    "meta_rrr"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# LOOP OVER ALL"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>filename</th>\n",
       "      <th>file_size</th>\n",
       "      <th>file_attributes</th>\n",
       "      <th>region_count</th>\n",
       "      <th>region_id</th>\n",
       "      <th>region_shape_attributes</th>\n",
       "      <th>region_attributes</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: [filename, file_size, file_attributes, region_count, region_id, region_shape_attributes, region_attributes]\n",
       "Index: []"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "n = len(list(data.values()))\n",
    "meta_rrr = pd.DataFrame(columns=headers)\n",
    "meta_rrr"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in range(n):\n",
    "    one = list(data.values())[i]\n",
    "    a = one[\"filename\"] #filename\n",
    "    b = one[\"size\"] #file_size\n",
    "    c = \"{}\" #file_attributes\n",
    "    d = len(one[\"regions\"])#region_count\n",
    "    g = \"{}\" #region_attributes\n",
    "    img = cv.imread(a)\n",
    "    one_df = pd.DataFrame(columns=headers)\n",
    "    for j in range(len(one[\"regions\"])):\n",
    "        xc = one[\"regions\"][j][\"shape_attributes\"][\"cx\"]#xc\n",
    "        yc = one[\"regions\"][j][\"shape_attributes\"][\"cy\"]#yc\n",
    "        r = one[\"regions\"][j][\"shape_attributes\"][\"r\"]#radius\n",
    "        t = {'name':'polygon','all_points_x':None,'all_points_y':None}\n",
    "        x,y = xy_values(xc,yc,r,img.shape[1],img.shape[0])\n",
    "        t['all_points_x']  = x\n",
    "        t['all_points_y'] = y\n",
    "        e = j #region_id\n",
    "        f = t #region_shape_attributes\n",
    "        row = [a,b,c,d,e,f,g]\n",
    "        one_df.loc[j] = row\n",
    "    meta_rrr = pd.concat([meta_rrr,one_df],ignore_index=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>filename</th>\n",
       "      <th>file_size</th>\n",
       "      <th>file_attributes</th>\n",
       "      <th>region_count</th>\n",
       "      <th>region_id</th>\n",
       "      <th>region_shape_attributes</th>\n",
       "      <th>region_attributes</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>rr-0001-0001-12013-252-304.jpg</td>\n",
       "      <td>74553</td>\n",
       "      <td>{}</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [404, 403,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>rr-0001-0001-12014-253-337.jpg</td>\n",
       "      <td>82272</td>\n",
       "      <td>{}</td>\n",
       "      <td>2</td>\n",
       "      <td>0</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [224, 223,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>rr-0001-0001-12014-253-337.jpg</td>\n",
       "      <td>82272</td>\n",
       "      <td>{}</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [303, 302,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>rr-0001-0001-12402-532-81.jpg</td>\n",
       "      <td>122638</td>\n",
       "      <td>{}</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [169, 168,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>rr-0001-0001-12402-532-81.jpg</td>\n",
       "      <td>122638</td>\n",
       "      <td>{}</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [394, 393,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>rr-0001-0001-12402-532-81.jpg</td>\n",
       "      <td>122638</td>\n",
       "      <td>{}</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [639, 639,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>rr-0001-0001-12403-536-88.jpg</td>\n",
       "      <td>98392</td>\n",
       "      <td>{}</td>\n",
       "      <td>6</td>\n",
       "      <td>0</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [305, 304,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>rr-0001-0001-12403-536-88.jpg</td>\n",
       "      <td>98392</td>\n",
       "      <td>{}</td>\n",
       "      <td>6</td>\n",
       "      <td>1</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [204, 203,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>rr-0001-0001-12403-536-88.jpg</td>\n",
       "      <td>98392</td>\n",
       "      <td>{}</td>\n",
       "      <td>6</td>\n",
       "      <td>2</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [189, 188,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>rr-0001-0001-12403-536-88.jpg</td>\n",
       "      <td>98392</td>\n",
       "      <td>{}</td>\n",
       "      <td>6</td>\n",
       "      <td>3</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [422, 421,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>rr-0001-0001-12403-536-88.jpg</td>\n",
       "      <td>98392</td>\n",
       "      <td>{}</td>\n",
       "      <td>6</td>\n",
       "      <td>4</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [470, 469,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>rr-0001-0001-12403-536-88.jpg</td>\n",
       "      <td>98392</td>\n",
       "      <td>{}</td>\n",
       "      <td>6</td>\n",
       "      <td>5</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [336, 335,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>0</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [616, 615,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>1</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [534, 533,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>2</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [597, 596,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>3</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [467, 466,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>4</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [323, 322,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>5</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [235, 234,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>6</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [249, 248,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>7</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [226, 225,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>8</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [377, 376,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>9</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [246, 245,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>10</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [35, 34, 3...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>11</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [88, 87, 8...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>12</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [420, 419,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>13</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [441, 440,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>14</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [282, 281,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>15</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [254, 253,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>16</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [164, 163,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>rr-0001-0002-1-62-0062.jpg</td>\n",
       "      <td>378044</td>\n",
       "      <td>{}</td>\n",
       "      <td>20</td>\n",
       "      <td>17</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [164, 163,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>563</th>\n",
       "      <td>rr-0004-0005-1-128-0128.jpg</td>\n",
       "      <td>297567</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>1</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [766, 765,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>564</th>\n",
       "      <td>rr-0004-0005-1-128-0128.jpg</td>\n",
       "      <td>297567</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>2</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [864, 863,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>565</th>\n",
       "      <td>rr-0004-0005-1-128-0128.jpg</td>\n",
       "      <td>297567</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>3</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [891, 890,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>566</th>\n",
       "      <td>rr-0004-0005-1-128-0128.jpg</td>\n",
       "      <td>297567</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>4</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [911, 911,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>567</th>\n",
       "      <td>rr-0004-0005-1-128-0128.jpg</td>\n",
       "      <td>297567</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>5</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [613, 612,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>568</th>\n",
       "      <td>rr-0004-0005-1-128-0128.jpg</td>\n",
       "      <td>297567</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [148, 147,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>569</th>\n",
       "      <td>rr-0004-0005-1-128-0128.jpg</td>\n",
       "      <td>297567</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>7</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [196, 195,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>570</th>\n",
       "      <td>rr-0004-0005-1-128-0128.jpg</td>\n",
       "      <td>297567</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>8</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [190, 189,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>571</th>\n",
       "      <td>rr-0004-0005-1-128-0128.jpg</td>\n",
       "      <td>297567</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>9</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [156, 155,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>572</th>\n",
       "      <td>rr-0004-0005-1-187-0187.jpg</td>\n",
       "      <td>490433</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>0</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [415, 414,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>573</th>\n",
       "      <td>rr-0004-0005-1-187-0187.jpg</td>\n",
       "      <td>490433</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>1</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [825, 824,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>574</th>\n",
       "      <td>rr-0004-0005-1-187-0187.jpg</td>\n",
       "      <td>490433</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>2</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [911, 911,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>575</th>\n",
       "      <td>rr-0004-0005-1-187-0187.jpg</td>\n",
       "      <td>490433</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>3</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [750, 750,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>576</th>\n",
       "      <td>rr-0004-0005-1-187-0187.jpg</td>\n",
       "      <td>490433</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>4</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [599, 598,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>577</th>\n",
       "      <td>rr-0004-0005-1-187-0187.jpg</td>\n",
       "      <td>490433</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>5</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [333, 332,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>578</th>\n",
       "      <td>rr-0004-0005-1-187-0187.jpg</td>\n",
       "      <td>490433</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>6</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [213, 212,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>579</th>\n",
       "      <td>rr-0004-0005-1-187-0187.jpg</td>\n",
       "      <td>490433</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>7</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [716, 715,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>580</th>\n",
       "      <td>rr-0004-0005-1-187-0187.jpg</td>\n",
       "      <td>490433</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>8</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [768, 767,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>581</th>\n",
       "      <td>rr-0004-0005-1-187-0187.jpg</td>\n",
       "      <td>490433</td>\n",
       "      <td>{}</td>\n",
       "      <td>10</td>\n",
       "      <td>9</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [857, 856,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>582</th>\n",
       "      <td>rr-0004-0005-11645-117-69.jpg</td>\n",
       "      <td>137534</td>\n",
       "      <td>{}</td>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [166, 165,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>583</th>\n",
       "      <td>rr-0004-0005-11645-117-69.jpg</td>\n",
       "      <td>137534</td>\n",
       "      <td>{}</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [653, 652,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>584</th>\n",
       "      <td>rr-0004-0005-11645-117-69.jpg</td>\n",
       "      <td>137534</td>\n",
       "      <td>{}</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [665, 664,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>585</th>\n",
       "      <td>rr-0004-0005-12013-251-409.jpg</td>\n",
       "      <td>79195</td>\n",
       "      <td>{}</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [16, 15, 1...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>586</th>\n",
       "      <td>rr-0004-0006-11645-126-133.jpg</td>\n",
       "      <td>177254</td>\n",
       "      <td>{}</td>\n",
       "      <td>7</td>\n",
       "      <td>0</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [280, 280,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>587</th>\n",
       "      <td>rr-0004-0006-11645-126-133.jpg</td>\n",
       "      <td>177254</td>\n",
       "      <td>{}</td>\n",
       "      <td>7</td>\n",
       "      <td>1</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [261, 260,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>588</th>\n",
       "      <td>rr-0004-0006-11645-126-133.jpg</td>\n",
       "      <td>177254</td>\n",
       "      <td>{}</td>\n",
       "      <td>7</td>\n",
       "      <td>2</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [195, 194,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>589</th>\n",
       "      <td>rr-0004-0006-11645-126-133.jpg</td>\n",
       "      <td>177254</td>\n",
       "      <td>{}</td>\n",
       "      <td>7</td>\n",
       "      <td>3</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [353, 352,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>590</th>\n",
       "      <td>rr-0004-0006-11645-126-133.jpg</td>\n",
       "      <td>177254</td>\n",
       "      <td>{}</td>\n",
       "      <td>7</td>\n",
       "      <td>4</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [348, 347,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>591</th>\n",
       "      <td>rr-0004-0006-11645-126-133.jpg</td>\n",
       "      <td>177254</td>\n",
       "      <td>{}</td>\n",
       "      <td>7</td>\n",
       "      <td>5</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [643, 642,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>592</th>\n",
       "      <td>rr-0004-0006-11645-126-133.jpg</td>\n",
       "      <td>177254</td>\n",
       "      <td>{}</td>\n",
       "      <td>7</td>\n",
       "      <td>6</td>\n",
       "      <td>{'name': 'polygon', 'all_points_x': [269, 268,...</td>\n",
       "      <td>{}</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>593 rows × 7 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                           filename file_size file_attributes region_count  \\\n",
       "0    rr-0001-0001-12013-252-304.jpg     74553              {}            1   \n",
       "1    rr-0001-0001-12014-253-337.jpg     82272              {}            2   \n",
       "2    rr-0001-0001-12014-253-337.jpg     82272              {}            2   \n",
       "3     rr-0001-0001-12402-532-81.jpg    122638              {}            3   \n",
       "4     rr-0001-0001-12402-532-81.jpg    122638              {}            3   \n",
       "5     rr-0001-0001-12402-532-81.jpg    122638              {}            3   \n",
       "6     rr-0001-0001-12403-536-88.jpg     98392              {}            6   \n",
       "7     rr-0001-0001-12403-536-88.jpg     98392              {}            6   \n",
       "8     rr-0001-0001-12403-536-88.jpg     98392              {}            6   \n",
       "9     rr-0001-0001-12403-536-88.jpg     98392              {}            6   \n",
       "10    rr-0001-0001-12403-536-88.jpg     98392              {}            6   \n",
       "11    rr-0001-0001-12403-536-88.jpg     98392              {}            6   \n",
       "12       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "13       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "14       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "15       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "16       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "17       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "18       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "19       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "20       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "21       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "22       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "23       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "24       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "25       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "26       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "27       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "28       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "29       rr-0001-0002-1-62-0062.jpg    378044              {}           20   \n",
       "..                              ...       ...             ...          ...   \n",
       "563     rr-0004-0005-1-128-0128.jpg    297567              {}           10   \n",
       "564     rr-0004-0005-1-128-0128.jpg    297567              {}           10   \n",
       "565     rr-0004-0005-1-128-0128.jpg    297567              {}           10   \n",
       "566     rr-0004-0005-1-128-0128.jpg    297567              {}           10   \n",
       "567     rr-0004-0005-1-128-0128.jpg    297567              {}           10   \n",
       "568     rr-0004-0005-1-128-0128.jpg    297567              {}           10   \n",
       "569     rr-0004-0005-1-128-0128.jpg    297567              {}           10   \n",
       "570     rr-0004-0005-1-128-0128.jpg    297567              {}           10   \n",
       "571     rr-0004-0005-1-128-0128.jpg    297567              {}           10   \n",
       "572     rr-0004-0005-1-187-0187.jpg    490433              {}           10   \n",
       "573     rr-0004-0005-1-187-0187.jpg    490433              {}           10   \n",
       "574     rr-0004-0005-1-187-0187.jpg    490433              {}           10   \n",
       "575     rr-0004-0005-1-187-0187.jpg    490433              {}           10   \n",
       "576     rr-0004-0005-1-187-0187.jpg    490433              {}           10   \n",
       "577     rr-0004-0005-1-187-0187.jpg    490433              {}           10   \n",
       "578     rr-0004-0005-1-187-0187.jpg    490433              {}           10   \n",
       "579     rr-0004-0005-1-187-0187.jpg    490433              {}           10   \n",
       "580     rr-0004-0005-1-187-0187.jpg    490433              {}           10   \n",
       "581     rr-0004-0005-1-187-0187.jpg    490433              {}           10   \n",
       "582   rr-0004-0005-11645-117-69.jpg    137534              {}            3   \n",
       "583   rr-0004-0005-11645-117-69.jpg    137534              {}            3   \n",
       "584   rr-0004-0005-11645-117-69.jpg    137534              {}            3   \n",
       "585  rr-0004-0005-12013-251-409.jpg     79195              {}            1   \n",
       "586  rr-0004-0006-11645-126-133.jpg    177254              {}            7   \n",
       "587  rr-0004-0006-11645-126-133.jpg    177254              {}            7   \n",
       "588  rr-0004-0006-11645-126-133.jpg    177254              {}            7   \n",
       "589  rr-0004-0006-11645-126-133.jpg    177254              {}            7   \n",
       "590  rr-0004-0006-11645-126-133.jpg    177254              {}            7   \n",
       "591  rr-0004-0006-11645-126-133.jpg    177254              {}            7   \n",
       "592  rr-0004-0006-11645-126-133.jpg    177254              {}            7   \n",
       "\n",
       "    region_id                            region_shape_attributes  \\\n",
       "0           0  {'name': 'polygon', 'all_points_x': [404, 403,...   \n",
       "1           0  {'name': 'polygon', 'all_points_x': [224, 223,...   \n",
       "2           1  {'name': 'polygon', 'all_points_x': [303, 302,...   \n",
       "3           0  {'name': 'polygon', 'all_points_x': [169, 168,...   \n",
       "4           1  {'name': 'polygon', 'all_points_x': [394, 393,...   \n",
       "5           2  {'name': 'polygon', 'all_points_x': [639, 639,...   \n",
       "6           0  {'name': 'polygon', 'all_points_x': [305, 304,...   \n",
       "7           1  {'name': 'polygon', 'all_points_x': [204, 203,...   \n",
       "8           2  {'name': 'polygon', 'all_points_x': [189, 188,...   \n",
       "9           3  {'name': 'polygon', 'all_points_x': [422, 421,...   \n",
       "10          4  {'name': 'polygon', 'all_points_x': [470, 469,...   \n",
       "11          5  {'name': 'polygon', 'all_points_x': [336, 335,...   \n",
       "12          0  {'name': 'polygon', 'all_points_x': [616, 615,...   \n",
       "13          1  {'name': 'polygon', 'all_points_x': [534, 533,...   \n",
       "14          2  {'name': 'polygon', 'all_points_x': [597, 596,...   \n",
       "15          3  {'name': 'polygon', 'all_points_x': [467, 466,...   \n",
       "16          4  {'name': 'polygon', 'all_points_x': [323, 322,...   \n",
       "17          5  {'name': 'polygon', 'all_points_x': [235, 234,...   \n",
       "18          6  {'name': 'polygon', 'all_points_x': [249, 248,...   \n",
       "19          7  {'name': 'polygon', 'all_points_x': [226, 225,...   \n",
       "20          8  {'name': 'polygon', 'all_points_x': [377, 376,...   \n",
       "21          9  {'name': 'polygon', 'all_points_x': [246, 245,...   \n",
       "22         10  {'name': 'polygon', 'all_points_x': [35, 34, 3...   \n",
       "23         11  {'name': 'polygon', 'all_points_x': [88, 87, 8...   \n",
       "24         12  {'name': 'polygon', 'all_points_x': [420, 419,...   \n",
       "25         13  {'name': 'polygon', 'all_points_x': [441, 440,...   \n",
       "26         14  {'name': 'polygon', 'all_points_x': [282, 281,...   \n",
       "27         15  {'name': 'polygon', 'all_points_x': [254, 253,...   \n",
       "28         16  {'name': 'polygon', 'all_points_x': [164, 163,...   \n",
       "29         17  {'name': 'polygon', 'all_points_x': [164, 163,...   \n",
       "..        ...                                                ...   \n",
       "563         1  {'name': 'polygon', 'all_points_x': [766, 765,...   \n",
       "564         2  {'name': 'polygon', 'all_points_x': [864, 863,...   \n",
       "565         3  {'name': 'polygon', 'all_points_x': [891, 890,...   \n",
       "566         4  {'name': 'polygon', 'all_points_x': [911, 911,...   \n",
       "567         5  {'name': 'polygon', 'all_points_x': [613, 612,...   \n",
       "568         6  {'name': 'polygon', 'all_points_x': [148, 147,...   \n",
       "569         7  {'name': 'polygon', 'all_points_x': [196, 195,...   \n",
       "570         8  {'name': 'polygon', 'all_points_x': [190, 189,...   \n",
       "571         9  {'name': 'polygon', 'all_points_x': [156, 155,...   \n",
       "572         0  {'name': 'polygon', 'all_points_x': [415, 414,...   \n",
       "573         1  {'name': 'polygon', 'all_points_x': [825, 824,...   \n",
       "574         2  {'name': 'polygon', 'all_points_x': [911, 911,...   \n",
       "575         3  {'name': 'polygon', 'all_points_x': [750, 750,...   \n",
       "576         4  {'name': 'polygon', 'all_points_x': [599, 598,...   \n",
       "577         5  {'name': 'polygon', 'all_points_x': [333, 332,...   \n",
       "578         6  {'name': 'polygon', 'all_points_x': [213, 212,...   \n",
       "579         7  {'name': 'polygon', 'all_points_x': [716, 715,...   \n",
       "580         8  {'name': 'polygon', 'all_points_x': [768, 767,...   \n",
       "581         9  {'name': 'polygon', 'all_points_x': [857, 856,...   \n",
       "582         0  {'name': 'polygon', 'all_points_x': [166, 165,...   \n",
       "583         1  {'name': 'polygon', 'all_points_x': [653, 652,...   \n",
       "584         2  {'name': 'polygon', 'all_points_x': [665, 664,...   \n",
       "585         0  {'name': 'polygon', 'all_points_x': [16, 15, 1...   \n",
       "586         0  {'name': 'polygon', 'all_points_x': [280, 280,...   \n",
       "587         1  {'name': 'polygon', 'all_points_x': [261, 260,...   \n",
       "588         2  {'name': 'polygon', 'all_points_x': [195, 194,...   \n",
       "589         3  {'name': 'polygon', 'all_points_x': [353, 352,...   \n",
       "590         4  {'name': 'polygon', 'all_points_x': [348, 347,...   \n",
       "591         5  {'name': 'polygon', 'all_points_x': [643, 642,...   \n",
       "592         6  {'name': 'polygon', 'all_points_x': [269, 268,...   \n",
       "\n",
       "    region_attributes  \n",
       "0                  {}  \n",
       "1                  {}  \n",
       "2                  {}  \n",
       "3                  {}  \n",
       "4                  {}  \n",
       "5                  {}  \n",
       "6                  {}  \n",
       "7                  {}  \n",
       "8                  {}  \n",
       "9                  {}  \n",
       "10                 {}  \n",
       "11                 {}  \n",
       "12                 {}  \n",
       "13                 {}  \n",
       "14                 {}  \n",
       "15                 {}  \n",
       "16                 {}  \n",
       "17                 {}  \n",
       "18                 {}  \n",
       "19                 {}  \n",
       "20                 {}  \n",
       "21                 {}  \n",
       "22                 {}  \n",
       "23                 {}  \n",
       "24                 {}  \n",
       "25                 {}  \n",
       "26                 {}  \n",
       "27                 {}  \n",
       "28                 {}  \n",
       "29                 {}  \n",
       "..                ...  \n",
       "563                {}  \n",
       "564                {}  \n",
       "565                {}  \n",
       "566                {}  \n",
       "567                {}  \n",
       "568                {}  \n",
       "569                {}  \n",
       "570                {}  \n",
       "571                {}  \n",
       "572                {}  \n",
       "573                {}  \n",
       "574                {}  \n",
       "575                {}  \n",
       "576                {}  \n",
       "577                {}  \n",
       "578                {}  \n",
       "579                {}  \n",
       "580                {}  \n",
       "581                {}  \n",
       "582                {}  \n",
       "583                {}  \n",
       "584                {}  \n",
       "585                {}  \n",
       "586                {}  \n",
       "587                {}  \n",
       "588                {}  \n",
       "589                {}  \n",
       "590                {}  \n",
       "591                {}  \n",
       "592                {}  \n",
       "\n",
       "[593 rows x 7 columns]"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "meta_rrr"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
